﻿#include "BaseSubscriber.h"
#include "DialogSubscriber.h"

BaseSubscriber::BaseSubscriber(QObject *parent):BaseCommunication(parent)
{

}

bool BaseSubscriber::Publish(QByteArray data)
{
    return true;
}

QDialog *BaseSubscriber::GetConfigWidget()
{
//    if(_configW==nullptr)
//    {
//        _configW=new DialogSubscriber();
//    }
    DialogSubscriber *config=new DialogSubscriber();
    config->SetCommunication(this);
    return config;
}
